import 'dart:async';

import 'package:amap_flutter_location/amap_flutter_location.dart';
import 'package:flutter/material.dart';
class OrderCreateState {
  TextEditingController controller = TextEditingController();
  TextEditingController number = TextEditingController();
  TextEditingController controller1 = TextEditingController();
  TextEditingController controller2 = TextEditingController();
  TextEditingController controller3 = TextEditingController();
  TextEditingController controller4 = TextEditingController();
  TextEditingController controller5 = TextEditingController();
  TextEditingController controller6 = TextEditingController();
  bool edit= false;
  int sendType = 2;
  int statusIndex = 1;
  //经度
  String maplocationX = "";
  //维度
  String maplocationY = "";
  //自提点列表数据
  List selfHelpAddressList = [];
  var orderAddress = null;
  //选中商品的数量
  var clickNum = 0;
  //购物车数据
  var cartData = new Map();
  List cartDataList = [];
  //商品规格数据
  var goodsSpecificationsData = new Map();
  //选中商品规格id数据
  String selectSpecifications;
  //选中商品规格图片
  String goodsSpecificationsImageData = "";
  //选中商品规格标题
  String goodsSpecificationsTitleData = "";
  //商品价格
  double sumParic;
  //当前打开规格项商品数量
  int goodsNum;
  //当前打开规格商品的cart_id用于删除使用
  String cart_id = '';
  //当前打开规格商品的店铺编码
  String ec_shop_num_id = '';
  //当前打开规格商品的商品编码
  String item_num_id = '';
  //代客下单会员信息
  var orderMemberData = new Map();
  //失效商品
  List sxGoodList=[];
  //购物车促销
  Map promotion_cat={
    'word_color': "#BBA234",
    'frame_color': "#C99F4F",
    'tag_fgcolor': "#FCF7EC",
  };
  //购物车营销
  Map activity_cat={
      'word_color': "#BBA234",
    'frame_color': "#C99F4F",
    'tag_fgcolor': "#FCF7EC",
  };
  List TJlist = [];
  //角度
  List angle=[0.0,0.0,0.0,0.0];
  List cxangle=[0.0,0.0,0.0,0.0];
  StreamSubscription<Map<String, Object>> locationListener;
  AMapFlutterLocation locationPlugin = new AMapFlutterLocation();
  OrderCreateState() {
    ///Initialize variables
  }
}
